package biolabs.mcl;

class SemanticException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private final Throwable[] problems;

	public SemanticException(String msg) {
		super(msg);
		problems = new Throwable[0];
	}

	public SemanticException(String msg, Throwable[] problems) {
		super(msg);
		this.problems = problems;
	}

	public Throwable[] getProblems() {
		return problems;
	}
}